<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;
return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('rd_organize_enterprise', function (Blueprint $table) {
            $table->comment('公司表');
            $table->bigIncrements('id')->comment('主键');
            $table->string('name', 255)->comment('公司名称');
            $table->string('icon', 255)->nullable()->comment('图标id');
            $table->authorBy();
            $table->timestamps();
            $table->string('remark')->comment('备注')->default('');
        });
    }
    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('rd_organize_enterprise');
    }
};